<template>
	<view>
		<page-head headTitle="我的二维码" :returnButton="true" @clickLeftReturn="clickLeftReturn"></page-head>
		<view class="m-t9 p-left p-right p-t6">
			<view class="bg-white p-t-b4 invite-p border-r">
				
				<view class="flex justify-content m-t-b p-b2">
					<image :src="image" class="invite-image"></image>
				</view>	
				
			</view>
		</view>
	</view>
</template>

<script>
	import pageHead from '@/components/common/page-head.vue'
	export default {
		components:{
			pageHead
		},
		data() {
			return {
				image:''
			}
		},
		onLoad() {
			this.getInviteInfo();
		},
		methods: {
			clickLeftReturn(){
				uni.navigateBack({
				    delta: 1
				});
			},
			getInviteInfo(){
				this.$myRequest({
					method:'POST',
					url:'/api/guide/qrcode'
				}).then(res=>{
					//console.log(res);
					this.image = res.data.data.url;
				})
			}
		}
	}
</script>

<style scoped>
.invite-fs{font-size: 32rpx;}
.invite-p{padding-top: 70rpx;padding-bottom: 70rpx;}
.invite-image{width: 380rpx;height: 380rpx;}
.invite-border{border: 1px solid  #333333;}
.copy-button{width: 240rpx;height: 66rpx; line-height: 2.1;}
</style>
